package com.fjec.base.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;

import java.io.Serializable;
import java.util.Map;

/**
 * <p>
 * 005.系统参数表
 * </p>
 *
 * @author admin
 * @since 2020-08-31
 */
@TableName(value = "sys_param", autoResultMap = true)
public class SysParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 参数Key
     */
    @TableField("ParamKey")
    private String paramKey;

    /**
     * 参数Value
     */
    @TableField(value = "ParamValue", typeHandler = JacksonTypeHandler.class)
    private Map<String, Object> paramValue;

    /**
     * 更新时间
     */
    @TableField("UpdateTime")
    private LocalDateTime updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getParamKey() {
        return paramKey;
    }

    public void setParamKey(String paramKey) {
        this.paramKey = paramKey;
    }
    public Map<String, Object> getParamValue() {
        return paramValue;
    }

    public void setParamValue(Map<String, Object> paramValue) {
        this.paramValue = paramValue;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "SysParam{" +
            "id=" + id +
            ", paramKey=" + paramKey +
            ", paramValue=" + paramValue +
            ", updateTime=" + updateTime +
        "}";
    }
}
